﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using WcfService1.DTO;

namespace WcfService1
{
    // NOTE: You can use the "Rename" command on the "Refactor" MutasiWarehouse to change the interface name "IMutasiWarehouseServices" in both code and config file together.
    [ServiceContract]
    public interface IMutasiWarehouseServices
    {
        [OperationContract]
        List<MutasiWarehouseDTO> GetList(int page, out long recordCount, string sortProperty = null,
                                         string sortType = "ASC");

        [OperationContract]
        bool Save(MutasiWarehouseDTO MutasiWarehouseDTO);

        [OperationContract]
        bool Delete(MutasiWarehouseDTO MutasiWarehouse);

        [OperationContract]
        List<MutasiWarehouseDTO> GetListByCriteria(Dictionary<String, Object> criteria, string expression, int page,
                                                   out long recordCount);

        [OperationContract]
        List<MutasiWarehouseDTO> GetAllMutasiWarehouse();

        [OperationContract]
        MutasiWarehouseDTO GetMutasiWarehouse(string kodeMutasiWarehouse);

        [OperationContract]
        List<MutasiWarehouseDTO> GetMutasiWarehouseList(string kodeMutasiWarehouse);

        [OperationContract]
        string GetLastNoMutasi();

        [OperationContract]
        bool DeleteDetail(MutasiWarehouseDetailDTO mutasiWarehouseDetailDTO);

        [OperationContract]
        bool SendEmail(MutasiWarehouseDTO obj, String DestinationFolder);

        [OperationContract]
        void UpdateStatus(MutasiWarehouseDTO mutasiWarehouseDto, Status status);
    }
}